import util from '../libs/util';
var qs = require('qs');


//获取银行卡列表
export function getCardInfoList(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/card_info/get_list',
        method: 'post',
        data:qs.stringify(values)
    })
}
//保存银行卡号
export function cardInfoCreate(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/card_info/create',
        method: 'post',
        data:qs.stringify(values)
    })
}
//修改银行卡号
export function cardInfoUpdate(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/card_info/update',
        method: 'post',
        data:qs.stringify(values)
    })
}
//删除银行卡号
export function cardInfoDel(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/card_info/del',
        method: 'post',
        data:qs.stringify(values)
    })
}


//获取员工结算佣金列表
export function getCommissionList(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/settlement/get_commission_list',
        method: 'post',
        data:qs.stringify(values)
    })
}


//更新员工基本信息
export function updateInfo(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/settlement/update_info',
        method: 'post',
        data:qs.stringify(values)
    })
}


//获取结算工资单
export function getSalaryList(values) {
    return util.ajax({
        url: '/settlement/get_salary_list',
        method: 'post',
        data:qs.stringify(values)
    })
}
 


//更新员工指定月份佣金
export function computeCommission(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/settlement/compute_commission',
        method: 'post',
        data:qs.stringify(values)
    })
}

//计算员工奖金
export function computeBonus(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/settlement/compute_bonus',
        method: 'post',
        data:qs.stringify(values)
    })
}


//获取单个职级的奖金列表
export function getBonusList(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/settlement/get_bonus_list',
        method: 'post',
        data:qs.stringify(values)
    })
}


//结算工资
export function computeSalary(values) {
    return util.ajax({
        url: '/settlement/compute_salary',
        method: 'post',
        data:qs.stringify(values)
    })
}


//导出工资
export function batchExport(values) {
    return util.ajax({
        url: '/settlement/batch_export',
        method: 'post',
        data:qs.stringify(values)
    })
}


//工资单
export function getSalaryDetail(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/settlement/get_salary_detail',
        method: 'post',
        data:qs.stringify(values)
    })
}


//获取个人工资
export function getPersonalSalary(values) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/settlement/get_personal_salary',
        method: 'post',
        data:qs.stringify(values)
    })
}